'use client'
import "./globals.css";
import React, { useState } from 'react';
import {
  DesktopOutlined,
  FileOutlined,
  PieChartOutlined,
  TeamOutlined,
  UserOutlined,
} from '@ant-design/icons';
import type { MenuProps } from 'antd';


type MenuItem = Required<MenuProps>['items'][number];

function getItem(
  label: React.ReactNode,
  key: React.Key,
  icon?: React.ReactNode,
  children?: MenuItem[],
): MenuItem {
  return {
    key,
    icon,
    children,
    label,
  } as MenuItem;
}

const items: MenuItem[] = [
  getItem('首页', '/', <PieChartOutlined />),
  getItem('客户', '/kh', <PieChartOutlined />),
  getItem('商机', '/sj', <DesktopOutlined />),
  getItem('订单', '/dd', <UserOutlined />),
  getItem('财务', '/cw', <TeamOutlined />),
  getItem('审批', '/sp', <FileOutlined />),
];



// 导出一个默认函数，名为RootLayout
// 导出一个默认函数，名为RootLayout，接收一个参数，类型为Readonly<{}>，包含一个children属性，类型为React.ReactNode
export default function RootLayout({

  children,
}: Readonly<{

  children: React.ReactNode;
}>) {

  return (
            <html lang="en">
              <body>
                {children}
              </body>
            </html>
  )
}

